@extends('qiwei.main')

@section('content')
    <body>
    <article class="page-container">
        <form action="{{route('nodeSave',$role)}}" method="post" class="form form-horizontal" id="form-member-add">
            {{--            @include('Admin.common.error')--}}
            @csrf
            <div class="row cl">

                @foreach($data as $val)
                    <div class="formControls ">

                        &emsp;&emsp;<input type="checkbox" value="{{$val['id']}}" placeholder="" name="node[]"
                                           @if(in_array($val['id'],$roleNode)) checked @endif
                        ><span>{{$val['html']}}{{$val['name']}}</span>
                    </div>
                @endforeach

            </div>

            <div class="row cl">
                <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                    <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
                </div>
            </div>
        </form>
    </article>
    @endsection

    @section('js')

        <!--请在下方写此页面业务相关的脚本-->
        <script type="text/javascript">

        </script>

@endsection
